<?php
class Act_computer extends Doctrine_Record
{
    public function setTableDefinition()
    {
        $this->hasColumn('act_id', 'integer', 20);
        //$this->hasColumn('support_id', 'integer', 20);    ar reikia?
        $this->hasColumn('company_gear_id', 'integer', 20);
        $this->hasColumn('comment_text', 'string', 1000);
        $this->hasColumn('solution', 'string', 1000);
    }

    public function setUp()
    {
        $this->actAs('Timestampable');
        $this->hasOne('Act', array(
                'local' => 'act_id',
                'foreign' => 'id'
            )
        );
        $this->hasMany('Company_gear as Company_gears', array(
                'local' => 'company_gear_id',
                'foreign' => 'id'
            )
        );
    }
} 


